	<link rel="stylesheet" href="../addons/jy_tour/resource/mobile/css/base/base.css?v=5">
	<link rel="stylesheet" href="../addons/jy_tour/resource/mobile/css/base/mobilebone.css">
	<link rel="stylesheet" href="../addons/jy_tour/resource/mobile/css/spot/spot.css?v=2">
	<div id="pageHome">
    <div class="page-content spot-content" id="productScrollFixed" style="top:0;">
		<div id="carousel-container" class="carousel slide" data-role="carousel" data-param-auto="true" style="margin-top:0rem">
			<div class="carousel-inner" role="listbox" style="height:7rem">
				<div ng-class="{'item':1,'active':$index==0}" ng-repeat="pic in pagedata.spot.images">
					<a href="{{item.url}}">
						<img src="{{tomedia(pic) || '../core/resource/images/banner-1.jpg'}}" style="display: block; width: 100%; height: 7rem;">
					</a>
				</div>
				</div>
					<style>
							.fui-swipe-page .fui-swipe-bullet {background: {background}; opacity: {opacity};}
							.fui-swipe-page .fui-swipe-bullet.active {opacity: 1;}
					</style>
					<div id="carousel-jinyun" class="fui-swipe-page" style="padding: 0 5px; bottom: 10px; ">
						<div class="fui-swipe-bullet" ng-repeat="pic in pagedata.spot.images" ng-class="{'active':$index==0}" data-target="#carousel-container" data-slide-to="{{$index}}"></div>
					</div>
		</div>
        <!-- 轮播图 -->

        <div class="product-tip-wrapper">
            <h1 class="product-title-bar">{{pagedata.spot.title}}</h1>
            <div class="product-ads-bar">
                <i ng-if="!empty(pagedata.spot.address)" class="ads-icon"></i>
                <span class="ads-msg">{{pagedata.spot.address}}</span>
               
            </div>

            <div class="product-info-bar" style="padding-bottom:0.3rem">
                <a href="javascript:;" ng-click="access_json('jy_tour/spot.assess_detail/main/id='+pagedata.spot.id)"  data-ajax=false class="item">
                    <span class="name">{{ifelse(pagedata.spot.manyidu>100,'100',pagedata.spot.manyidu)}}%满意度</span>
                    <span class="sub">共有{{pagedata.spot.pingjianum || 0}}条评论</span>
                </a>
            
         
                <a href="javascript:;" ng-click="access_json('jy_tour/spot.introduce//id='+pagedata.spot.id)" class="item">
                    <span class="name">景区介绍</span>
                    <span class="sub" ng-bind-html="trust(pagedata.spot.desc)"> 
                    </span>
                </a>
                
            </div>
        </div>
        <!-- 顶部信息 -->

        <div class="product-type-wrapper" style="padding-bottom:2.5rem;" id="productTypeWrapper">
            <div ng-repeat="ticket in pagedata.tickets"  class="product-type-block retract">
                <div class="type-bar" ng-click="toogle(ticket,'isshow',[1,0])">
                    <span class="title">{{ticket.title}}-{{ticket.merch.merchname || '无商户'}}（商户）</span>
                    <i ng-class="{'icon jinyunicon':1,'icon-less':ticket.isshow==1,'icon-moreunfold':ticket.isshow==0}"></i>
                </div>
                <ul class="product-type-group" ng-show="ticket.isshow==0">
                    <li ng-repeat="(k,suit) in ticket.types" class="type-item">
                        <div class="product-type-info">
                            <div class="tit">{{suit.title}}</div>
                            <div class="set">
                                <!--退款条件-->
                               
                                <span ng-if="suit.refund_restriction==0" class="label">无条件退</span>
                              
                                <span ng-if="suit.refund_restriction==1" class="label">不可退改</span>
                                
                                <span ng-if="suit.refund_restriction==2" class="label">有条件退</span>
                            
                                <!--支付方式-->
                               
                                <span ng-if="suit.pay_way==1" class="label">线上支付</span>
                                
                                <span ng-if="suit.pay_way==2" class="label">线下支付</span>
                               
                                <span ng-if="suit.pay_way==3" class="label">线上支付</span>
                                <span ng-if="suit.pay_way==3" class="label">线下支付</span>
                              
                            </div>
                            <div class="explain">
                            
                                <span>当天24:00前预订</span>
                              
                                <span class="txt">门票说明<i class="icon"></i></span>
                            </div>
                        </div>
                        <div class="product-type-booking" style="width:auto">
                            <span class="price"><span class="num">{{suit.minprice}}</span>起</span>                           
                            <a  ng-if="suit.minprice" class="spot-yd" href="javascript:;" ng-click="access_json('jy_tour/spot.book//ticketid='+ticket.id+'&suitid='+k)" data-ajax="false"><span class="buy">预订</span></a>                     
                            <span  ng-if="suit.price_status==1 && !suit.minprice" class="buy grey">电询</span>                                                
                            <span ng-if="suit.price_status==3" class="buy grey">电询</span>                           
                            <span ng-if="suit.price_status==2" class="buy grey">订完</span>
                            
                        </div>
                    </li>
                </ul >
            </div>
        </div>
        <!-- 推荐相关 -->
        <div class="no-info-bar">亲，拉到最底啦~</div>
        <div clas="fixed-container-area">
            <div class="fixed-container-bar">
                <a href="tel:{{pagedata.basic.tel}}" class="item kf">
					<i class="icon jinyunicon icon-kefu"></i><div>电话客服</div>
				</a>
			<!--	<a class="item sc ">
					<i class="icon jinyunicon icon-shoucang" ></i><div>收藏</div>
				</a>
				-->
                <a href="javascript:;" ng-click="access_json('jy_tour/spot.book//ticketid='+pagedata.first.id+'&suitid=0')"  class="item xz">前往预定</a>
            </div>
        </div>
    </div>
</div>


<div class="page out" id="spotShowInfo">
    <div class="header_top">
        <a class="back-link-icon" href="javascript:;" data-rel="back"></a>
        <h1 class="page-title-bar">景区介绍</h1>
    </div>
    <!-- 公用顶部 -->
    <div class="page-content">
       
           
            <div ng-repeat="extend in pagedata.extends" class="spot-js-wrapper">
                <h4 class="tit-bar">{{extend.title}}</h4>
                <div class="spot-js-content editor-content clearfix">
                   {{extend.content}}
                </div>
            </div>
      
        <div class="no-info-bar">亲，拉到最底啦~</div>
    </div>
</div>
<!-- 景区介绍 -->
<div id="ticketInfo_{{suit.id}}" class="hide">
    <div class="product-show-info">
        <div class="info-show-bar">门票说明<i class="close-icon" id="closeTicketLayer_{{suit.id}}"></i></div>
        <div class="info-show-area">
		
            <div class="info-primary-hd">
			
                <h4 class="tit">{{suit.title}}</h4>
                <div class="attr">
                    <!--退款条件-->
                   
                    <span ng-if="suit.refund_restriction==0" class="item">无条件退</span>
                  
                    <span ng-if="suit.refund_restriction==1" class="item">不可退改</span>
           
                    <span ng-if="suit.refund_restriction==2" class="item">有条件退</span>
                 
                    <!--支付方式-->
                 
                    <span class="item">线上支付</span>
              
                </div>
            </div>
            <div class="info-other-bd">
                <h4 class="tit">预订时间</h4>
                <div class="txt">当天24:00前可预订
                </div>
            </div>
            <div class="info-other-bd">
                <h4 class="tit">有效期</h4>
                <div class="txt">验票当天24:00前
                </div>
            </div>
            <div ng-if="!empty(suit.get_ticket_way)" class="info-other-bd">
                <h4 class="tit">取票说明</h4>
                <div class="txt">{{suit.get_ticket_way}}</div>
            </div>
          
            
            <div ng-if="suit.merchid" class="info-other-bd">
                <h4 class="tit">供应商</h4>
                <div class="txt editor-content clearfix">
                   {{suit.merch.name}}
                </div>
            </div>
            
           
            <div ng-if="!empty(suit.description)" class="info-other-bd">
                <h4 class="tit">门票说明</h4>
                <div class="txt editor-content clearfix">
                  {{suit.description}}
                </div>
            </div>
            
        </div>
        <div class="product-booking-bar">
            <span ng-if="suit.minprice" class="total"><span class="num">{{suit.minprice}}</span>起</span>
            <span ng-if="!suit.minprice" class="total">电询</span>
                <a class="btn" ng-click="access_json('/spot.book//id='+pagedata.spot.id+'&suitid='+suit.id)" data-ajax="false">立即预订</a>
        </div>
    </div>
</div>
<script>
for(var i=0;scope.pagedata.tickets.length>i;i++){
	scope.pagedata.tickets[i].isshow = 0;
}
require(['bootstrap', 'hammer'], function($, Hammer){
		$('#carousel-container').carousel();
		var mc = new Hammer($('#carousel-container').get(0));
		mc.on("panleft", function(ev) {
			$('#carousel-container').carousel('next');
		});
		mc.on("panright", function(ev) {
			$('#carousel-container').carousel('prev');
		});
});
</script>